<%@ page language="java" isELIgnored="false"
	contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../common/header.jspf"%>
<link href="${ctx}/other/css/bootstrap-table.css" rel="stylesheet">
<link href="${ctx}/styles/bootstrap-datetimepicker.min.css"
	rel="stylesheet">

<link href="${ctx}/css/common.css" rel="stylesheet" />
<link href="${ctx}/css/select2.css" rel="stylesheet" />
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="panel-body">
				<html></html>
				<form action="../UserController/findByCondition.action"
					method="post">
					<div class="select-gril form-inline">
						<div class="col-sm-3 header-search-box col-left">
							<span>用户名：</span>
							<div class="col-sm-8 form-group col-both">
								<input type="text" class="form-control" id="userName"
									name="userName">
							</div>
						</div>
						<div class="header-zl-right header-search-box">
							<div class="searchBtn" style="float: left; margin-right: 20px;">
								<a id="searchUser" class="hvr-icon-pulse col-11">查询</a>
							</div>
							<div class="reset" style="float: left;">
								<a class="btn btn-info" id="reset"
									style="width: 70px; height: 28px; padding-left: 10px; padding-top: 3px; color: #fff; font-weight: bold;"><span><i
										class="fa fa-refresh"></i></span> 重置 </a>
							</div>
						</div>
					</div>
				</form>
				<!-- 以上是查询界面   以下是列表界面 -->
			</div>
			<div class="container-main col-sm-12">
				<div class="adv-table">
					<div id="hidden-table-info_wrapper"
						class="dataTables_wrapper form-inline" role="grid">
						<div class="btn-group btn-group-justified">
							<a class="btn btn-info" id="addUser"><span><i
									class="fa fa-plus-circle"></i></span>添加</a> <a class="btn btn-info"
								id="modifyUser"><span><i class="fa fa-pencil"></i></span>修改</a>
							<a class="btn btn-info" id="deleteUser"><span><i
									class="fa fa-trash-o"></i></span>删除</a>
									<!-- href="#modal-container-114248"  -->
									 <a 
								role="button" data-toggle="modal"
								class="btn btn-info" id="AuthorityUser" style="float: right">授权</a>

						</div>

						<table id="User"
							class="table table-bordered dataTable
							table-striped table-hover"
							data-toggle="table"
							data-url="../UserController/findByCondition.action"
							data-query-params="queryParams" data-click-to-select="true"
							data-unique-id="userId" data-pagination="true"
							data-page-size="10" data-striped="true" data-show-columns="true"
							data-show-refresh="true">
							<thead>
								<tr role="row">
									<th class="sorting_disabled" data-checkbox="true"></th>
									<th class="sorting_disabled hidden" data-field="userId">ID</th>
									<th class="sorting_disabled" data-field="userName">用户名</th>
									<th class="sorting_disabled" data-field="userPassword">密码</th>
									<th class="sorting_disabled" data-field="userPhone">用户手机</th>
									<th class="sorting_disabled" data-field="userRealname">姓名</th>
									<th class="sorting_disabled" data-field="userSex">性别</th>
									<th class="sorting_disabled" data-field="userNation">民族</th>
									<th class="sorting_disabled" data-field="userNativeplace">籍贯</th>
									<th class="sorting_disabled" data-field="userAddress">住址</th>
									<th class="sorting_disabled" data-field="userSchool">学校</th>
									<th class="sorting_disabled" data-field="userEducation">学历</th>
									<th class="sorting_disabled" data-field="userDepartment">院系</th>
									<th class="sorting_disabled" data-field="userMajor">专业</th>
									<th class="sorting_disabled" data-field="userBitthdate"
										data-formatter="formatDate" data-sortable="true">出生年月</th>
									<th class="sorting_disabled" data-field="userWorkexperience">工作年限</th>
									<th class="sorting_disabled" data-field="userGraduatetime"
										data-formatter="formatDate" data-sortable="true">毕业时间</th>
									<th class="sorting_disabled" data-field="userPosition">就业职位</th>
									<th class="sorting_disabled" data-field="userState" data-formatter="findByuserState">所属角色</th>
									<!--  <th class="sorting_disabled" data-field="roleId"></th> -->
								</tr>
							</thead>
						</table>
					</div>
				</div>



				<div class="modal fade" id="modalUser" role="dialog"
					aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-dialog">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal"
									aria-hidden="true">×</button>
							<form id="userAuthorFrom" method="post">
								<h4 class="modal-title" id="myModalLabel">用户授权</h4>
								<input type="text" name="userId" id="userId">
								<select id="UserRoleCombox" name="userState"
									class="form-control">
								</select> 
							</form>
							</div>
							
							<div class="modal-footer">
								<button type="button" class="btn btn-default"
									data-dismiss="modal">关闭</button>
								<button type="button" class="btn btn-primary" id="reserve">保存</button>
							</div>
						</div>

					</div>

				</div>

			</div>
		</div>
	</div>

	<%@ include file="user_file.jsp"%>
	<%@ include file="../common/bottom.jspf"%>
	<!-- hDialog -->
	<script type="text/javascript" src="${ctx}/script/pm/users.js"></script>
	<script type="text/javascript" src="${ctx}/other/js/moment.min.js"></script>
	<script type="text/javascript" src="${ctx}/script/jquery.hDialog.js"></script>
	<script type="text/javascript" src="${ctx}/other/js/sweetalert.min.js"></script>
	<script type="text/javascript" src="${ctx}/js/select2.js"></script>
	<script type="text/javascript" src="${ctx}/js/select2_locale_zh-CN.js"></script>
	<script type="text/javascript" src="${ctx}/js/location.js"></script>
	<script type="text/javascript" src="${ctx}/js/area.js"></script>

	<!-- easyfrom -->
	<script type="text/javascript" src="${ctx}/script/pm/user.js"></script>
</body>
